﻿// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Entity_PROD_HISTORY_TECHNIC_ITEM
// * CreateDate    : 2012/4/19 16:54:13
// * Creater       : CodeSmith
// * LastChangeDate: 2012/4/19 16:54:13
// * LastChanger   : 2012/4/19 16:54:13
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Data;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;
using ESOL.Common.Schema;

namespace ESOL.Common.Entity
{
    [Serializable]
    public partial class ProdHistoryTechnicItemEntity : EntityBase
    {
        public ProdHistoryTechnicItemTable TableSchema
        {
            get
            {
                return ProdHistoryTechnicItemTable.Current;
            }
        }

        public ProdHistoryTechnicItemEntity()
        {

        }

        public ProdHistoryTechnicItemEntity(DataRow dr)
        {
            if (dr == null)
            {
                return;
            }
            this.Id = Convert.ToString(CommonFunctions.ToObject(dr["ID"]));
            this.HistoryTechnicId = Convert.ToString(CommonFunctions.ToObject(dr["HISTORY_TECHNIC_ID"]));
            this.TechnicId = Convert.ToString(CommonFunctions.ToObject(dr["TECHNIC_ID"]));
            this.GroupId = Convert.ToString(CommonFunctions.ToObject(dr["GROUP_ID"]));
            this.Sequence = Convert.ToInt32(CommonFunctions.ToObject(dr["SEQUENCE"]));
            this.PlanWorkingHours = Convert.ToDecimal(CommonFunctions.ToObject(dr["PLAN_WORKING_HOURS"]));
        }

        public ProdHistoryTechnicItemEntity(DataRowView dr)
        {
            if (dr == null)
            {
                return;
            }
            this.Id = Convert.ToString(CommonFunctions.ToObject(dr["ID"]));
            this.HistoryTechnicId = Convert.ToString(CommonFunctions.ToObject(dr["HISTORY_TECHNIC_ID"]));
            this.TechnicId = Convert.ToString(CommonFunctions.ToObject(dr["TECHNIC_ID"]));
            this.GroupId = Convert.ToString(CommonFunctions.ToObject(dr["GROUP_ID"]));
            this.Sequence = Convert.ToInt32(CommonFunctions.ToObject(dr["SEQUENCE"]));
            this.PlanWorkingHours = Convert.ToDecimal(CommonFunctions.ToObject(dr["PLAN_WORKING_HOURS"]));
        }

        public override TableInfo OringTableSchema
        {
            get
            {
                return ProdHistoryTechnicItemTable.Current;
            }
        }

        #region Perporty List
        public string Id
        {
            get { return Convert.ToString(GetData(ProdHistoryTechnicItemTable.C_ID)); }
            set { SetData(ProdHistoryTechnicItemTable.C_ID, value); }
        }

        public string HistoryTechnicId
        {
            get { return Convert.ToString(GetData(ProdHistoryTechnicItemTable.C_HISTORY_TECHNIC_ID)); }
            set { SetData(ProdHistoryTechnicItemTable.C_HISTORY_TECHNIC_ID, value); }
        }

        public string TechnicId
        {
            get { return Convert.ToString(GetData(ProdHistoryTechnicItemTable.C_TECHNIC_ID)); }
            set { SetData(ProdHistoryTechnicItemTable.C_TECHNIC_ID, value); }
        }

        public string GroupId
        {
            get { return Convert.ToString(GetData(ProdHistoryTechnicItemTable.C_GROUP_ID)); }
            set { SetData(ProdHistoryTechnicItemTable.C_GROUP_ID, value); }
        }

        public int Sequence
        {
            get { return Convert.ToInt32(GetData(ProdHistoryTechnicItemTable.C_SEQUENCE)); }
            set { SetData(ProdHistoryTechnicItemTable.C_SEQUENCE, value); }
        }

        public decimal PlanWorkingHours
        {
            get { return Convert.ToDecimal(GetData(ProdHistoryTechnicItemTable.C_PLAN_WORKING_HOURS)); }
            set { SetData(ProdHistoryTechnicItemTable.C_PLAN_WORKING_HOURS, value); }
        }

        #endregion
    }


}

